import Vue from 'vue'
import Router from 'vue-router'
import Home from '@/pages/home/Home'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Home',
      component: Home,
      redirect: '/goods',
      children: [{
        path: '/goods',
        component: () => import('@/pages/home/goods/Goods')
      }, {
        path: '/seller',
        component: () => import('@/pages/home/seller/Seller')
      }, {
        path: '/star',
        component: () => import('@/pages/home/star/Star')
      }]
    }
  ]
})
